FROM 192.168.133.162:8082/iotcloud/dotnet_sdk:8.0 AS build
WORKDIR /app
COPY . ./
WORKDIR /app/SmartHealth.Web.Entry
RUN dotnet publish --runtime linux-x64 --framework net8.0 --output ./publish
FROM 192.168.133.162:8082/iotcloud/mcraspnet:8.0 
ENV TZ=Asia/Shanghai
WORKDIR /app
COPY --from=build /app/SmartHealth.Web.Entry/publish/ .
ENTRYPOINT ["dotnet", "SmartHealth.Web.Entry.dll","--urls","http://*:5000"]
EXPOSE 5000